<template>
      <div style="background-color:rgba(255,255,255);    margin-top: -5px;">
      <div class="block">
        <div class="title">
          <div>公司产业</div>
          <div class="min">SERVICES</div>
          <router-link to="/company/business/" class="go-more">查看更多</router-link>
        </div>
        <div class="content">
          <el-row :gutter="40">
            <el-col v-for="i in 3" :key ="i" :span="8" :xs="24" style="margin-top: 10px; margin-bottom: 10px">
              <div class="item" v-if="serviceList[i-1]">
                <div style="height: 240px; overflow: hidden"><img height="100%" :src="serviceList[i-1].img" ></div>
                 <div class="item-title">
                   {{serviceList[i-1].group_name}} <span>{{serviceList[i-1].company_name}}</span>
                 </div>
                 <div class="item-info">
                    {{serviceList[i-1].synopsis}}
                 </div>
                 <div class="go-detail">
                   <router-link :to="`/info/business/${serviceList[i-1].article_type[0]}/`">
                     查看详情
                   </router-link>
                 </div>
                </div>
              </el-col>
          </el-row>
        </div>
      </div>
      </div>
</template>

<script>
export default {
  data() {
    return {
      serviceList: ''
    }
  },
  created() {
    this.$request({url: '/business/'}).then(result => {
      const {data} = result
      this.serviceList = data
    })
  }
}
</script>

